package cn.yunhe.bean;

import java.util.ArrayList;
import java.util.List;

public class User {

    private int userId;
    private String realName;
    private String userName;
    private String pwd;
    private Long phone;
    private String email;
    private String sex;
    private List<Travel> travelList=new ArrayList<>();

    public User() {
    }

    public User(String userName, String pwd) {
        this.userName = userName;
        this.pwd = pwd;
    }

    public User(String realName, String userName, String pwd, Long phone, String email, String sex) {
        this.realName = realName;
        this.userName = userName;
        this.pwd = pwd;
        this.phone = phone;
        this.email = email;
        this.sex = sex;
    }

    public User(String realName, String userName, String pwd, Long phone, String email, String sex, List<Travel> travelList) {
        this.realName = realName;
        this.userName = userName;
        this.pwd = pwd;
        this.phone = phone;
        this.email = email;
        this.sex = sex;
        this.travelList = travelList;
    }

    public User(int userId, String realName, String userName, String pwd, Long phone, String email, String sex, List<Travel> travelList) {
        this.userId = userId;
        this.realName = realName;
        this.userName = userName;
        this.pwd = pwd;
        this.phone = phone;
        this.email = email;
        this.sex = sex;
        this.travelList = travelList;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public Long getPhone() {
        return phone;
    }

    public void setPhone(Long phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public List<Travel> getTravelList() {
        return travelList;
    }

    public void setTravelList(List<Travel> travelList) {
        this.travelList = travelList;
    }
}
